<?php

function render($data, $name) {
    require 'online-books-resources/templates/header.php';
    require 'online-books-resources/' . $name;
    require 'online-books-resources/templates/footer.php';
}